//
//  AppDelegate.m
//  DZYFM
//
//  Created by dongzhenyu on 2017/10/31.
//  Copyright © 2017年 dongzhenyu. All rights reserved.
//

#import "AppDelegate.h"
#import "DZYTabBarController.h"
#import "TestOneViewController.h"
@interface AppDelegate ()

@end

@implementation AppDelegate


- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    
    self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
    
    DZYTabBarController *rootVc = [DZYTabBarController tabBarControllerWithAddChildVcBlock:^(DZYTabBarController *tabBarVc) {
        [tabBarVc addChildVc:[TestOneViewController new] normalImgName:@"tabbar_find_n" selectedImgName:@"tabbar_find_h" isRequiredNavController:YES];
        [tabBarVc addChildVc:[UIViewController new] normalImgName:@"tabbar_sound_n" selectedImgName:@"tabbar_sound_h" isRequiredNavController:YES];
        [tabBarVc addChildVc:[UIViewController new] normalImgName:@"tabbar_download_n" selectedImgName:@"tabbar_download_h" isRequiredNavController:YES];
        [tabBarVc addChildVc:[UIViewController new] normalImgName:@"tabbar_me_n" selectedImgName:@"tabbar_me_h" isRequiredNavController:YES];
        
    }];

    self.window.rootViewController = rootVc;
    [self.window makeKeyAndVisible];
    
    return YES;
}




@end
